<?php

$login = $_GET['login'];
$senha = $_GET['senha'];

$path = "/home/e-jovem/";
$name = "log.txt";

$file = file($path . $name);
$file = explode("|", $file[0]);

if ((($file[0] == $login) && ($file[1] == $senha)) && (($login != "") && ($senha != ""))) {
    header("location:bem_vindo.php");
} else {
    header("location:index.php");
}
?>
